//
//  HJCAjustNumButton.h
//  HJCAdjustButtonTest
//
//  Created by HJaycee on 15/6/4.
//  Copyright (c) 2015年 HJaycee. All rights reserved.
//

#import <UIKit/UIKit.h>


@class HJCAjustNumButton;

@protocol HJCAjustNumButtonDelegate <NSObject>

-(void)ajustNumButton:(HJCAjustNumButton *)AjustNumButton didChangeNub:(NSString *)nubStr;

-(void)ajustNumButtonDidBecomeFirstRespond:(HJCAjustNumButton *)AjustNumButton;
@end


@interface HJCAjustNumButton : UIView


/**
 *  边框颜色，默认值是浅灰色
 */
@property (nonatomic, assign) UIColor *lineColor;

/**
 *  文本框内容
 */
@property (nonatomic, copy) NSString *currentNum;

/**
 *  文本框内容改变后的回调
 */
@property (nonatomic, copy) void (^callBack) (NSString *currentNum);


@property (nonatomic, copy) void (^to0callBack) ();

/**
 *  外界赋值
 */
@property(nonatomic,copy)NSString *number;

/**
 *
 */
//@property(nonatomic,assign)int maxNumber;

@property(nonatomic,weak)id<HJCAjustNumButtonDelegate>delegate;
@end
